package com.zbf1811a.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/7/27  17:34
 * 描述:
 */
@Mapper
@Repository
public interface MsgMapper {

    @Update("update base_msg set status=#{status},errorMsg=#{errorMsg} where id=#{id}")
    public int update(Map<String,Object> map);


    @Insert("insert into base_msg(id,msg,status,errorMsg)values(#{id},#{msg},#{status},#{errorMsg})")
    public int insert(Map<String,Object> map);
}
